package me.keiwu.pub.rpc;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by kei on 30/01/2018.
 */
public interface MedalRpcPub {

    @RequestMapping("/rpc/medal/save")
    String save(@RequestParam("medalId") Integer medalId,
                @RequestParam("name") String name,
                @RequestParam("url") String url,
                @RequestParam("cost") Integer cost);


    @RequestMapping("/rpc/medal/list")
    String list(@RequestParam("page") Integer page,
                @RequestParam("size") Integer size);


    @RequestMapping("/rpc/medal/shelve")
    String shelve(@RequestParam("medalId") Integer medalId,
                  @RequestParam("shelve") boolean shelve);


    @RequestMapping("/rpc/medal/present/send")
    String sendMedalPresent(@RequestParam("presentId") Integer presentId);


    @RequestMapping("/rpc/medal/present/list")
    String listPresent(@RequestParam("page") Integer page,
                       @RequestParam("size") Integer size);

    @RequestMapping("/rpc/medal/present/detail")
    String presentDetail(@RequestParam("presentId") Integer presentId);


    @RequestMapping("/rpc/medal/present/find")
    String findPresent();

}
